package com.service.database.constants;

/**
 * jdbc常量
 * @author xianggj
 * @Date 2021/6/4 15:50
 **/
public class JdbcConstants {

    /**
     * 分隔符
     */
    public static final String DECOLLATOR = "/";

    /**
     * 双分隔符
     */
    public static final String DOUBLE_DECOLLATOR = "//";

    /**
     * 冒号
     */
    public static final String COLON_MARK = ":";

    /**
     * 问号
     */
    public static final String QUESTION_MARK = "?";

    /**
     * 连接符
     */
    public static final String AND_MARK = "&";

    /**
     * jdbc前缀
     */
    public static final String MYSQL_JDBC_PREFIX = "jdbc:mysql://";

    /**
     * oracle前缀
     */
    public static final String ORACLE_JDBC_PREFIX = "jdbc:oracle:thin:@//";

    /**
     * postgres前缀
     */
    public static final String PG_JDBC_PREFIX = "jdbc:postgresql://";

    /**
     * DM8前缀
     */
    public static final String DM8_JDBC_PREFIX = "jdbc:dm://";


    /**
     * 根据数据库不同这里可能不同
     */
    public static final String CURRENT_SCHEMA = "currentSchema=";

    public static final String USER = "user=";

    public static final String PWD = "password=";
}
